package com.huawei.cloud.phone.management.common.exception;

import org.springframework.http.HttpStatus;

public class InvalidParamException extends BusinessException {
    static final long serialVersionUID = 4034837121245766939L;

    public InvalidParamException(String name, Object value) {
        super("CPH.MANAGER.SYSTEM.00002", name, value);
        setHttpCode(HttpStatus.BAD_REQUEST.value());
    }

    public InvalidParamException(String msg) {
        super("CPH.MANAGER.SYSTEM.00004", msg);
        setHttpCode(HttpStatus.BAD_REQUEST.value());
    }
}
